package com.lucy.nepu.module.paper.rule;

import com.lucy.nepu.module.htopic.rule.IsHorTopicTypeValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author kindear
 * 在周期内
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IsHorTopicTypeValidator.class)
public @interface InPeriod {
    String message() default "论文发表时间不在审核周期内";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
